datatypes dtd="http://relaxng.org/ns/compatibility/datatypes/1.0"

element foo {
   element bar {
     attribute id { dtd:ID }
   },
   element bar {
     attribute id { token }
   } *
 }

